package com.culture.bootdemo.common.init;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Component;

/**
 * Web 容器启动后会运行 run 方法
 */
@EnableScheduling
@Component
@Slf4j
public class StartRun implements ApplicationRunner {

    @Override
    public void run(ApplicationArguments args) throws Exception {
        log.info("StartRun项目初始化数据2>>>>>>>>>>>>>>>>>>");
    }
}
